// 首页
layui.use('element', function(){
  var element = layui.element;
});

// 表单提交
layui.use('form', function(){
  var form = layui.form;
  form.on('submit(formDemo)', function(data){
    layer.msg('提交成功！');
  });
});

// 点击编辑
function editMsg(id){
  window.location.href = '/student/edit?id=' + id
}

// 点击删除
function deleteMsg(id){
  window.location.href = '/student/delete?id=' + id
}